﻿@model SIFIET.Models.User
@{
    ViewBag.Title = "Generar";
}
<h2>
    Información Personal del Usuario</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="alert success">@TempData["Registrado"]</div>
<div class="alert success">@TempData["info"]</div>
<div>
</div>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <div class="editor-label">
            <h3>@Html.LabelFor(model => model.PhoneNumber)</h3>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PhoneNumber)
            @Html.ValidationMessageFor(model => model.PhoneNumber)
        </div>
        <div class="editor-label">
            <h3>@Html.LabelFor(model => model.FirstNames)</h3>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FirstNames)
            @Html.ValidationMessageFor(model => model.FirstNames)
        </div>
        <div class="editor-label">
            <h3>@Html.LabelFor(model => model.LastNames)</h3>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastNames)
            @Html.ValidationMessageFor(model => model.LastNames)
        </div>
        <div class="editor-label">
           <h3> @Html.LabelFor(model => model.Address)</h3>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>
        <div class="editor-label">
           <h3> @Html.LabelFor(model => model.CellphoneNumber)</h3>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CellphoneNumber)
            @Html.ValidationMessageFor(model => model.CellphoneNumber)
        </div>
        <div class="editor-label">
           <h3> @Html.LabelFor(model => model.BirthDate)</h3>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BirthDate)
            @Html.ValidationMessageFor(model => model.BirthDate)
        </div>
        <div class="editor-label">
           <h3> @Html.LabelFor(model => model.Gender)</h3>
            <div>
                M
                @Html.RadioButtonFor(model => model.Gender, "M")
                F
                @Html.RadioButtonFor(model => model.Gender, "F")
            </div>
        </div>
        <div class="editor-label">
           <h3> @Html.LabelFor(model => model.MaritalStatus)</h3>
        </div>
        <div class="editor-field">
            <div>
                Soltero
                @Html.RadioButtonFor(model => model.MaritalStatus, "Soltero")
                Casado
                @Html.RadioButtonFor(model => model.MaritalStatus, "Casado")
                 Unión Libre
                @Html.RadioButtonFor(model => model.MaritalStatus, "U Libre")
            </div>

            <div>
                &nbsp
            </div>
        </div>
        <div>
            <input type="submit" value="Registrar" class="ebutton blue" />&nbsp
            @Html.ActionLink("Regresar al Listado de Usuarios", "Index", "", htmlAttributes: new { @class = "ebutton blue" })
        </div>
    </fieldset>
}
